<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2017/11/2
  Time: 20:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="www.gaopan.com" prefix="myFt" %>
<html>
<head>
    <title>$Title$</title>
    <script type="text/javascript">
        var explore = function () {
            var a = document.getElementById("input");
            a.onkeyup = function () {

                // alert(a.value);
                var request = new XMLHttpRequest();
                var url = "/JSP/temp?time=" + new Date();
                var method = "POST";
                request.open(method, url);
                request.setRequestHeader('Content-Type', 'application/x-www-form-urlencided');
                var status = {"values": "gaopan"};
                request.send(status);
                request.onreadystatechange = function () {
                    if (request.readyState == 4) {
                        if (request.status == 200 || request.status == 304) {

                        }
                    }
                }
            }
            if (a.value.trim().length > 0) {
            }
        }
    </script>
</head>
<body onload="explore()">
搜素<input id="input"/>
</body>
</html>
